package org.game.module.storebo.handler;

import java.util.Map;

import org.constant.MailConstant;
import org.game.db.bean.Player;
import org.game.log.builder.LogDsp;
import org.game.manager.MailManager;
import org.game.module.storebo.BuySuccessHandler;

/**
 * 微信积分商城兑换处理
 * 
 * @author liu.jiang
 * @date 2018年3月26日
 */
public class WechatShopHandler implements BuySuccessHandler {

    private WechatShopHandler() {}

    private static WechatShopHandler ME = new WechatShopHandler();

    public static WechatShopHandler me() {
        return ME;
    }

    @Override
    public void deliverGoods(Player player, Map map, LogDsp log) {
        // 邮件发放奖励
        MailManager.me().sendPersonalMail(0, player.getId(), MailConstant.TEXT_TYPE_CONFIG,
                "mail.wechatshop.title", "mail.wechatshop.content", null, map, log);
    }
}
